import request from '@/utils/request'
import service from '@/utils/api'

export function getList(params) {
  return request({
    url: '/vue-admin-template/table/list',
    method: 'get',
    params
  })
}

// -------------------------echarts -------------
//概览数据
export function overview(data) {
  return service({
    url: '/admin/index/overview',
    method: 'post',
    data
  })
}
//今日营业收入
export function income(data) {
  return service({
    url: '/admin/index/income',
    method: 'post',
    data
  })
}
// 折线图
export function business(data) {
  return service({
    url: '/admin/index/business',
    method: 'post',
    data
  })
}
//储值卡收入数据
export function cardsell(data) {
  return service({
    url: '/admin/index/sell',
    method: 'post',
    data
  })
}
// 柱状图
export function revenue(data) {
  return service({
    url: '/admin/index/revenue',
    method: 'post',
    data
  })
}
// 饼状图
export function card(data) {
  return service({
    url: '/admin/index/card',
    method: 'post',
    data
  })
}
